package com.google.code.virtualhockey.vhx.server.servlet.custom

import com.google.code.virtualhockey.vhx.server.servlet.rest.{RestCommandHandler, RestCommandRequest, RestCommandHandlerLookup}
import com.google.code.virtualhockey.vhx.server.servlet.handler.VhxGetServerEnvironment

/**
 * Looks up VHX specific command handlers.
 */
object VhxCommandHandlerLookup extends RestCommandHandlerLookup {

  protected def lookupHandler(cmd: RestCommandRequest): Option[RestCommandHandler] = cmd.command match {
    case "GetServerEnv" => Some( VhxGetServerEnvironment )
    case _ => None
  }
}
